package com.qire.manhua.dialog;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.qire.antsrouter.AntsRouter;
import com.qire.common.constant.Navigation;
import com.qire.common.support.base.BaseDialog;
import com.qire.manhua.R;
import com.qire.manhua.databinding.DialogObtainWaySelectorOfBeanBinding;

import androidx.annotation.NonNull;

/**
 * 金豆获取方式选择器对话框：在账户详情页显示
 */
public class ObtainWaySelectorOfBeanDialog extends BaseDialog {

    private final DialogObtainWaySelectorOfBeanBinding viewDataBinder;

    public ObtainWaySelectorOfBeanDialog(@NonNull Context context) {
        super(context, R.style.CustomDialog_Translucent);
        viewDataBinder = DialogObtainWaySelectorOfBeanBinding.inflate(LayoutInflater.from(context));
        viewDataBinder.setObtainWaySelectorOfBeanDialog(this);
        setContentView(viewDataBinder.getRoot());
    }

    public void closeDialog(View view) {
        dismiss();
    }

    public void gotoBuyCoinBtnOnClick(View view) {
        AntsRouter.ROUTER.buildCard(Navigation.Page.BuyCoinsMarketPage).navigation();
        dismiss();
    }

    public void gotoTaskBtnOnClick(View view) {
        AntsRouter.ROUTER.buildCard(Navigation.Page.TaskCenterPage).navigation();
        dismiss();
    }

}
